
//
//  BViewController.m
//  框架
//
//  Created by MyMac on 15/9/23.
//  Copyright (c) 2015年 tongfang. All rights reserved.
//

#import "BViewController.h"

@interface BViewController ()

@end

@implementation BViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"B";
      self.navigationController.navigationBar.barTintColor=[UIColor whiteColor];
    self.view.backgroundColor=[UIColor blueColor];

    
    
    
}
-(void)viewWillAppear:(BOOL)animated
{



}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    UIViewController*vc=[[UIViewController alloc]init];
    vc.view.backgroundColor=[UIColor greenColor];
    [self.navigationController pushViewController:vc animated:YES];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}
-(void)dealloc
{
    NSLog(@"%@",self);
    
}


@end
